package com.linkai.io;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

/**
 * @Description:
 * @Author: 林凯
 * @Date: 2021/10/17 17:30
 */
public class T09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String line = null;
        String[] lineSpilt = null;
        ArrayList<String> lineSplitList = new ArrayList<>();
        while (sc.hasNextLine()) {
            line = sc.nextLine();
            lineSpilt = line.split(" ");
            for (int i = 0; i < lineSpilt.length; i++) {
                lineSplitList.add(lineSpilt[i]);
            }
            // 进行排序
            Collections.sort(lineSplitList);;

            for (int i = 0; i < lineSplitList.size() - 1; i++) {
                System.out.print(lineSplitList.get(i) + " ");
            }
            System.out.println(lineSplitList.get(lineSplitList.size() - 1));

            // 删除里面的所有元素，为下次排序做准备
            lineSplitList.clear();
        }
    }
}
